<#include "../common/layout.ftl"/>
<@layout>
<div width="100%" style="height: 900px;">
	<div class="dxfsqd_title">价格设置</div>
	<div class="dxfsqd_shearch">	
		<#if session.userRole == 'admin'>
			<a class="btn" href="/sysUser/telAdd"><i class="icon-user icon-white"></i>添加分公司</a>
			<button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
		</#if>
  </div>
<div class="dxfsqd_table">
	<table class="table table-bordered table-striped">
		<thead>
		  <tr>
			<th scope="col">ID</th>
			<th scope="col">员工联系电话</th>
			<th scope="col">公司代码</th>
			<th scope="col">公司名称</th>
			<!--<th>子公司名称</th>-->
			<th scope="col">负责人名称</th>
			<th scope="col">负责人手机</th>
			<th scope="col">提成类型</th>
			<th scope="col">提成(固定/比例)</th>
			<th scope="col">提成区间</th>
			<!--<th>城市id</th>-->
			<th scope="col">所属城市</th>
			<th scope="col">代叫提成比例</th>
			<th scope="col">剩余短信数量</th>
			<th scope="col">已使用数量</th>
			<th scope="col">客户联系电话</th>
			<th scope="col">员工最小接单金额</th>
			<th scope="col">保险金额</th>
			<th scope="col">操作</th>
		  </tr>
		</thead>
		<tbody>
		<#list tellist as tmp>
		  <#if session.company == tmp.company || session.userRole == 'admin'>
		  <tr>
			<td>
			  <span class="label">${tmp.id}</span>
			</td>
			<td>
			 ${tmp.tel!""}
			</td>
			<!--<td>
			  ${tmp.company!""}
			</td>-->
			<td>
			  ${tmp.company!""}
			</td>
			<td>
			  ${tmp.companyname!""}
			</td>
			<td>
			  ${tmp.user_name!""}
			</td>
			<td>
			  ${tmp.user_phone!""}
			</td>
			<td>
			  <#if tmp.commissiontype?exists>
			  	 <#if tmp.commissiontype == 1>
			  	 	可降比例扣款
			  	 <#elseif tmp.commissiontype == 2>
			  	 	比例提成
			  	 <#elseif tmp.commissiontype == 3>
			  	 	按天提成
			  	 <#else>
			  	 	未知
			  	 </#if>
			  </#if>
			</td>
			<td>
				<#if tmp.commissiontype?exists>
			  	 <#if tmp.commissiontype == 1>
			  		 <!--${tmp.fixedmoney!""}元-->
			  	 <#elseif tmp.commissiontype == 2>
			  	 	${tmp.proportion!""}%
			  	 <#elseif tmp.commissiontype == 3>
			  	 	${tmp.daymoney!""}元
			  	 </#if>
			  </#if>
			</td>	
			<td>
				低于${tmp.lowerthanmoney!""}元提成${tmp.commissionmoney!""}元
			</td>
			<!--<td>
			  ${tmp.city_id!""}
			</td>-->
			<td>
			  ${tmp.city!""}
			</td>
			<td>
			  ${tmp.call_proportion!""}
			</td>
			<td>
			  ${tmp.message_num!"0"}
			</td>
			<td>
			  ${tmp.countMessage!"0"}
			</td>
			<td>
			  ${tmp.client_phone!""}
			</td>
			<td>
			  ${tmp.driver_limit_amt!""}
			</td>
			<td>
				${tmp.safe_money!"0" }
			</td>
			<td>
				<div class="btn-group">
                    <#if menuType??>
                        <#if menuType=='2'>
                            <#if session.userRole == 'admin'>
                                <a class="cf" href="/sysUser/editPrice/${tmp.company}"><i class="icon-info-sign icon-white"></i>代驾价格设置</a>
                            </#if>
                            <#if session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                <#if session.company == tmp.company>
                                    <a class="cf" href="/sysUser/editPrice/${tmp.company}"><i class="icon-info-sign icon-white"></i>代驾价格设置</a>
                                </#if>
                            </#if>
                        </#if>
                        <#if menuType=='3'>
                            <#if session.userRole == 'admin'>
                                <a class="cf" href="/sysUser/telEidt/${tmp.id}"><i class="icon-info-sign icon-white"></i> 修改</a>
                            </#if>
                            <#if session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                <#if session.company == tmp.company>
                                    <a class="cf" href="/sysUser/telEidt/${tmp.id}"><i class="icon-info-sign icon-white"></i> 修改</a>
                                </#if>
                            </#if>
                        </#if>
                    <#else>
                            <#if session.userRole == 'admin'>
                                <a class="cf" href="/sysUser/telEidt/${tmp.id}"><i class="icon-info-sign icon-white"></i> 修改</a>
                            </#if>
                            <#if session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                <#if session.company == tmp.company>
                                    <a class="cf" href="/sysUser/telEidt/${tmp.id}"><i class="icon-info-sign icon-white"></i> 修改</a>
                                </#if>
                            </#if>
                            <#if session.userRole == 'admin'>
                                <a class="cf" href="/sysUser/editPrice/${tmp.company}"><i class="icon-info-sign icon-white"></i>代驾价格设置</a>
                            </#if>
                            <#if session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                <#if session.company == tmp.company>
                                    <a class="cf" href="/sysUser/editPrice/${tmp.company}"><i class="icon-info-sign icon-white"></i>代驾价格设置</a>
                                </#if>
                            </#if>
                            <#if session.userRole == 'admin'>
                                <a class="cf" href="/sysUser/telDel/${tmp.id}"><i class="icon-trash icon-white"></i> 删 除</a>
                            </#if>
                    </#if>

				</div>
			</td>
		  </tr>
		</#if>
		</#list>
		</tbody>
	</table>  
</div>
</div>
          
</@layout>